package xkp.lesson1;

public class Person {
	private int age;
	private String name;
	//在反编译过之后，会自动生成一个无参构造
	//如果有任何的构造方法出现，则默认的无参构造会被覆盖
	
	//
	public Person() {}
	
	public Person(int age, String name) {
		super();
		this.age = age;
		this.name = name;
	}
	
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
